<input type="hidden" name="action" value="editor_exe" />
<input type="hidden" name="exe" value="<?php echo $exe['id']; ?>" />
<div id="commands">
<img class="icon command" src="<?php echo SYSICONS_URL; ?>filesave_22.gif" onclick="edit_form.submit();"  />
</div>
<div class="tabs_spec" style="height:100%;">
	<ul>
		<li><a href="#exe_source"><?php echo ucfirst($txt->getWord('step')).' 1 -'.ucfirst($txt->getWord('select')).' '.ucfirst($txt->getWord('source')); ?></a></li>
		<li><a href="#exe_source2"><?php echo ucfirst($txt->getWord('step')).' 2 -'.ucfirst($txt->getWord('format')).' '.ucfirst($txt->getWord('source')); ?></a></li>
        <?php if($_REQUEST['run'] > 0): ?>
        <li><a href="#exe_source3"><?php echo ucfirst($txt->getWord('step')).' 3 -'.ucfirst($txt->getWord('run')); ?></a></li>
        <?php endif; ?>
    </ul>
    <div id="exe_source">
    	<?php require('forms/exe_source.php'); ?>
	</div>
    <div id="exe_source2" >
    	<?php if($exe['type'] == 1): ?>
    	<?php require('forms/exe_source_format_t1.php'); ?>
        <?php else: ?>
        <?php require('forms/exe_source_format.php'); ?>
        <?php endif; ?>
	</div>
    <?php if($_REQUEST['run'] > 0): ?>
    <div id="exe_source3" >
    	<?php require('forms/exe_source_run.php'); ?>
	</div>
    <?php endif; ?>
</div>
<script type="text/javascript">
jQuery(document).ready(function() 
{
   	jQuery(".tabs_spec").tabs({cookie:{expires:30}});
	<?php if($exe['type'] != 1): ?>
		<?php if(($exe['src_loc_type'] == 1) && (is_file(PRODUCT_PATH.'import/csv/'.$exe['src_loc']))): ?>
			<?php if($_REQUEST['run'] > 0): ?>
				jQuery(".tabs_spec").tabs( 'select' , 2 );
			<?php else : ?> 
				jQuery(".tabs_spec").tabs( 'select' , 1 );
			<?php endif; ?>
		<?php else : ?> 
			jQuery('.tabs_spec').data('disabled.tabs', [1]);
		<?php endif; ?>
	<?php endif; ?>
	<?php if($exe['type'] == 1): ?>
		<?php if($exe['src_loc'] != ''): ?>
			<?php if($_REQUEST['run'] > 0): ?>
				jQuery(".tabs_spec").tabs( 'select' , 2 );
			<?php else : ?> 
				jQuery(".tabs_spec").tabs( 'select' , 1 );
			<?php endif; ?>
		<?php else : ?> 
			jQuery('.tabs_spec').data('disabled.tabs', [1]);
		<?php endif; ?>
	<?php endif; ?>
	
});
</script>